/**
 * 
 */
package design_pattern.chainOfResponsibility;

/**
 * @author linzq
 * 
 */
public class JiaShe extends Player {

  /**
   * @param jiaZheng
   */
  public JiaShe(Player successor) {
    super.successor = successor;
  }

  @Override
  public void handle() {
    if (DrumBeater.stop == true) {
      System.out.println("JiaShe gotta drink.");
    } else {
      System.out.println("JiaShe passed.");
      next();
    }
  }

}
